<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title></title>
        <meta charset="utf-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <link rel="stylesheet" href="css/fonts/font-awesome.min.css">
        <link rel="stylesheet" href="css/ui-box.css">
        <link rel="stylesheet" href="css/ui-base.css">
        <link rel="stylesheet" href="css/ui-color.css">
        <link rel="stylesheet" href="css/appcan.icon.css">
        <link rel="stylesheet" href="css/appcan.control.css">
        <link rel="stylesheet" href="personal/css/personal.css">
        <link rel="stylesheet" href="personal/css/my.css">
    </head>
    <body class="" ontouchstart>
        <!--删除原来的header部分  -->
        <div class="bc-bg" tabindex="0" data-control="PAGE" id="Page">
        <!--新的header部分 -->
            <div class="uh bc-head  ubb bc-border" data-control="HEADER" id="Header">
                <div class="ub">
                    <div class="nav-btn" id="return">
                        <div class="ub-img1 icon-left ulev2"></div>
                    </div>
                    <h1 class="ut ub-f1 ulev-3 ut-s tx-c" tabindex="0">个人信息页</h1>
                    <div class="nav-btn" id="nav-right">
                        <div class="ub-img starwh1 star1 margin-2" id="shoucang"></div>
                    </div>
                </div>
            </div>
     <!--   --> 
    <div class="" data-control="CONTENT" id="ScrollContent">
      <div class="scrollbox"> 
       <div class="uinn-a1 ub bc-head yy_ulev-2 yy_h blur" >
            <div class="ub-f1 ub ub-ver ub-ac ub-pc" id="login">
                <div class="yy_uwh-set3 uc-a-set3 ub-img setImg1" id='touxiang'></div>
                <div class="umar-at1" id="userName">
                    点击头像登录
                </div>
                
     
            </div>

        </div>
    <!--删除默认的下拉更新部分  
    <div class="box_bounce ub ub-ver ub-pc">
      <div class="ub-f1">
      </div>
      <div class="bounce_status">下拉更新......</div>
      <div class="bounce_status">松手更新......</div>
      <div class="bounce_status">更新中......</div>
    </div>
    -->
    <!--以下是2个列表控件 -->
    <div class="ub ub-ver yy_ulev-1">
      <div class=" umar-at1">
        <div id="listview1" class="ubt bc-border c-wh">
        </div>
        <div id="listview2" class="ubt bc-border c-wh umar-at1">
        </div>
      </div>
      <!--删除以下2个列表控件 -->
       <!--
      <div id="listview3" class="ubt bc-border c-wh umar-at1">
      </div>
      <div id="listview4" class="ubt bc-border c-wh umar-at1">
      </div>
      -->
    </div>
  </div>
  </div>
  </div>
  </div>
       </body>
        <script src="js/appcan.js"></script>
        <script src="js/appcan.control.js"></script>
        <script src="js/appcan.scrollbox.js"></script>
        <script src="js/template.import.js"></script>
		<script src="js/appcan.listview.js"></script>
		<script src="js/appcan.optionList.js"></script>
		<script src="js/appcan.slider.js"></script>
		<script src="js/appcan.tab.js"></script>
		<script src="js/appcan.treeview.js"></script>
        <script src="personal/js/personal.js"></script>
         <script>
       
        var lv = appcan.listview({
            selector : "#listview1",
            type : "thinLine",
            hasIcon : true,
            hasAngle : true,
            hasSubTitle : false,
            multiLine : 1,
        });
        lv.set([{
            title : "编辑信息",
            icon : "personal/css/myImg/wdzp.png",
            subTitle : "12:05",
            id : "2"
        }, {
            title : "我的订单",
            icon : "personal/css/myImg/wdjl.png",
            subTitle : "12:05",
            id : "2"
        }, {
            title : "我的收藏",
            icon : "personal/css/myImg/wddp.png",
            subTitle : "12:05",
            id : "2"
        }])
        lv.on("click", function(ele, obj, curEle) {
           //islog = appcan.locStorage.val('islog');
            //if (islog == '0') {
                if (obj.title == '编辑信息') {
                    appcan.window.open({
                        name : 'xiugai',
                        data : 'xuigai.html'
                    })
                    //appcan.locStorage.setVal('name', name);
                    
                } else if (obj.title == '我的收藏') {
                    appcan.window.open({
                        name : 'myCollected',
                        data : 'myCollected.html' 
                    })
                    appcan.locStorage.setVal('userID', uID);
                }
            /*} 
            else {
                appcan.window.openToast('您未登录', '2000', '5', 0);
            }*/
        })
        var lv1 = appcan.listview({
            selector : "#listview2",
            type : "thinLine",
            hasIcon : true,
            hasAngle : true,
            hasSubTitle : false,
            multiLine : 1,
        });
        lv1.set([{
            title : "返回主页",
            icon : "personal/css/myImg/ls.png",
            id : "1"
        }, {
            title : "退出登录",
            icon : "personal/css/myImg/sz.png",
            id : "2"
        }])
        lv1.on("click", function(ele, obj, curEle) {
            islog = appcan.locStorage.val('islog');
            if (obj.title == '退出登录') {
                if (islog == '1') {
                    appcan.locStorage.remove();
                    //清除缓存
                     $('#userName').text('点击头像登录');
                      photo = '5590ee892636b6e31f560d1f';
                      login_data = mbaasURL + photo;
                $("#touxiang").css("background-image", "url('" + login_data + "') !important");
                
                } else {
                    appcan.window.openToast('您还未登录！', '2000', '5', '0');
                }
            } else if (obj.title == '返回主页') {
                  appcan.window.open({
                    name:'index',
                    data:'index.html'
                })
            }
        })
    </script>
   
</html>